package com.kcsoft.welcome.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;

import java.time.LocalDate;
import java.util.Date;

@Data
public class Pfence {

    private Integer id;

    @ExcelProperty(index = 0)
    @NotBlank
    private String name;

    @ExcelProperty(index = 1)
    @NotNull
    private Integer pf;

    @ExcelProperty(index = 2)
    private LocalDate time;

    public Pfence() {
    }

    public Pfence(Integer id, String name, Integer pf, LocalDate time) {
        this.id = id;
        this.name = name;
        this.pf = pf;
        this.time = time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPf() {
        return pf;
    }

    public void setPf(Integer pf) {
        this.pf = pf;
    }

    public LocalDate getTime() {
        return time;
    }

    public void setTime(LocalDate time) {
        this.time = time;
    }
}
